﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PodcastToMP3
{
    class Program
    {
        static void Main(string[] args)
        {
            var filePath = @"E:\Users\Luis Gustavo\Music\iTunes\iTunes Media\Podcasts\Tiësto`s Club Life Podcast\Tiësto`s club life podcast 292.m4a";

            using (var stream = new Mp4(filePath))
            {
                foreach (var item in stream)
                {
                    Console.WriteLine(item.Name);
                    if (item.Name != "ftyp")
                        foreach (var item2 in item)
                        {
                            Console.WriteLine(string.Format("|->{0}", item2.Name));
                            foreach (var item3 in item2)
                            {
                                Console.WriteLine(string.Format("   |->{0}", item3.Name));
                            }
                        }
                }
            }
        }
    }
}
